<template>
	<view>
		<view class="topone">
			<!-- http://139.224.249.149:8888/down/W1RYfGilprYa -->
			<view class="topone_top1">
				<image src="http://139.224.249.149:8888/down/JhHG1ZPaFd33" mode=""></image>
			</view>
			<view class="topone_top2">
				<image src="http://139.224.249.149:8888/down/HHpFz6KaD9rI" mode=""></image>
			</view>
		</view>
		<view class="one">
			<view class="top1" @click="onGoDetailsPageBtn(1)">
				<!-- <image src="http://139.224.249.149:8888/down/4Jp8IB2Zr8lt" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/VaY1bn5GdQvx" mode=""></image>
			</view>
			<view class="top3" @click="onGoDetailsPageBtn(4)">
				<!-- <image src="http://139.224.249.149:8888/down/8zRts26n6qcK" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/NIsMGpuaFK0O" mode=""></image>
			</view>
			<view class="top3" @click="onGoDetailsPageBtn(2)">
				<!-- <image src="http://139.224.249.149:8888/down/1FVpDC5kvASK" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/z1IqP3JKP1U0" mode=""></image>
			</view>

			<view class="top3" @click="onGoDetailsPageBtn(3)">
				<!-- <image src="http://139.224.249.149:8888/down/Xumm4UPEtTaQ" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/jCGO6Bigg8YR" mode=""></image>
			</view>

			<view class="top3" @click="onGoDetailsPageBtn(5)">
				<!-- <image src="http://139.224.249.149:8888/down/K60mGjCN6xjC" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/kQXRuEBaNyBb" mode=""></image> 
				
			</view>
			<view class="top3" @click="onGoDetailsPageBtn(6)">
				<!-- <image src="http://139.224.249.149:8888/down/vbStDWu8m2FK" mode=""></image> -->
				<image src="http://139.224.249.149:8888/down/i10tFYHrzLjk" mode=""></image>
				
			</view>
			<view class="top4">
			</view>
			<view class="top5">
			</view>
		</view>
		<view style="height: 110rpx"> </view>
		<movable />
		<zdy-tabbar :current-page="0" @transfer="onTransferFun"></zdy-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		created() {
			// wx.showShareMenu({
			//   withShareTicket: true,
			//   menus: ['shareAppMessage', 'shareTimeline']
			// })
		},
		methods: {
			onGoDetailsPageBtn(type) {

				// 跳转到新页面并传递参数
				uni.navigateTo({
				  url: `../details/details?id=${type}`
				});
			},
			// 父组件中的方法
			onTransferFun(m) {
				// this.show = true;
				uni.makePhoneCall({
					phoneNumber: "400-6933-110",
				});
			},
		},
	};
</script>

<style lang="scss" scoped>
	.topone {

		.topone_top1 {
			height: 400rpx;
			width: 100%;
			image {
				width: 100%;
				height: 100%;
			}
		}
		.topone_top2{
			height: 200rpx;
			width: 100%;
			image {
				width: 100%;
				height: 100%;
			}
		}
	}

	.one {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.top5 {
		margin-top: 50rpx;
		height: 900rpx;
		width: 100%;
		overflow: hidden;
		margin-bottom: 30rpx;
		object-fit: cover;
		background-image: url('http://139.224.249.149:8888/down/7V8R8NadKp0p');
		background-size: 100% 100%;
		background-position: center center;
	}

	.top4 {
		height: 1100rpx;
		width: 100%;
		background-image: url('http://139.224.249.149:8888/down/BJHd7B36L0ox');
		background-size: 100% 100%;
		background-position: center center;
		// image {
		// 	width: 100%;
		// 	height: 100%;
		// 	border: 1px solid red;
		// }
	}

	.top3 {
		margin-top: 50rpx;
		height: 350rpx;
		width: 100%;
		border-radius: 20rpx;
		overflow: hidden;
		image {
			width: 100%;
			height: 100%;
		}
	}

	.top1 {
		height: 350rpx;
		width: 100%;
		border-radius: 20rpx;
		overflow: hidden;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.popupbar {
		height: 320rpx;
		background-color: #cbcbcb;
		display: flex;
		flex-direction: column;

		.popupbar_top {
			background-color: #ffffff;
			height: 110rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 25rpx;
		}

		.cancelcs {
			margin-top: 10rpx;
			background-color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
			flex: 1;
			border-bottom: 1px solid #dddddd;
		}
	}
</style>